Fast rule-based graph programs

نویسندگان

چکیده

Implementing graph algorithms efficiently in a rule-based language is challenging because pattern matching expensive. In this paper, we present number of linear-time implementations GP 2, an experimental programming based on transformation rules which aims to facilitate program analysis and verification. We focus two classes programs: reduction programs check some property, using depth-first search test property or perform operation such as producing 2-colouring topological sorting. Programs the first type run linear time without any constraints input graphs while second require bounded degree time. Essential for achieving complexity are so-called rooted which, many situations, can be matched constant For each our programs, prove both correctness complexity, also give empirical evidence their runtime.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

From imperative to rule-based graph programs

The use of graphs to model dynamic structures is ubiquitous in computer science; prominent example areas include compiler construction, pointer programming, natural language processing, and model-driven software development. The behaviour of systems in such areas can be naturally captured by graph transformation rules specifying small state changes. Domain-specific languages based on graph tran...

متن کامل

A Margin-based Model with a Fast Local Searchnewline for Rule Weighting and Reduction in Fuzzynewline Rule-based Classification Systems

Fuzzy Rule-Based Classification Systems (FRBCS) are highly investigated by researchers due to their noise-stability and  interpretability. Unfortunately, generating a rule-base which is sufficiently both accurate and interpretable, is a hard process. Rule weighting is one of the approaches to improve the accuracy of a pre-generated rule-base without modifying the original rules. Most of the pro...

متن کامل

Graph-based Rule Editor

In this paper we present a prototypical implementation of a graphical tool for creating rules. This tool uses a graph-based Palantir tool environment as a user interface to model rule conditions and conclusions. It is also used to visualize data and results of reasoning. We present a process of converting graph models stored in an XML format file into the Jess knowledge base and rules. Results ...

متن کامل

Evolution of rule-based programs

The term rule-based program is meant to include definite clause programs, SOS specifications, attribute grammars, and conditional rewrite systems. These setups are widely used for the executable specification or implementation of language-based tools, e.g., interpreters, translators, type checkers, program analysers, and program transformations. We provide a pragmatic, transformation-based appr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Science of Computer Programming

سال: 2022

ISSN: ['1872-7964', '0167-6423']

DOI: https://doi.org/10.1016/j.scico.2021.102727